package com.uetoken.cn.adapter;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.blankj.utilcode.util.LogUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.uetoken.cn.R;
import com.uetoken.cn.bean.BanksInfo;
import com.uetoken.cn.utils.GlideApp;

import java.util.List;

/**
 * @author 谢杨
 * @time 2018/9/11 13:51
 * @class 描述:
 */
public class BankAdapter extends BaseQuickAdapter<BanksInfo.DataBean,BaseViewHolder> {
    public BankAdapter(int layoutResId, @Nullable List<BanksInfo.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BanksInfo.DataBean item) {
        LogUtils.e(item.getLogo());
        GlideApp.with(mContext).load(item.getLogo()).into((ImageView) helper.getView(R.id.iv_item_bank_logo));
        helper.setText(R.id.tv_item_bank_name,item.getBankchinaname());
    }
}
